﻿<Page x:Class="ScoreMS.Views.PersonalCourseAdd"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="618"
	Title="PersonalCourseAdd">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="72" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Text="添加带课信息" TextAlignment="Center" FontSize="24" Margin="0,26,0,0"></TextBlock>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="206*" />
                <ColumnDefinition Width="412*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="103*" />
                <RowDefinition Height="125*" />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="课程" FontSize="18" Height="23" HorizontalAlignment="Right" Margin="0,65,0,0" Name="textBlock1" VerticalAlignment="Top" Width="41" />
            <ComboBox Grid.Row="0" Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="15,65,0,0" Name="cbxCourse" VerticalAlignment="Top" MinWidth="120">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding course_id}"></TextBlock>
                            <TextBlock Margin="3, 0, 0, 0" Text="{Binding course_name}"></TextBlock>
                        </StackPanel>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
            <Button Content="添加" Grid.Column="1" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="15,27,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        </Grid>
    </Grid>
</Page>
